/*
    地图界面
 */

import React from "react";
import { View, requireNativeComponent } from "react-native";
import {R} from '../../../core';
import { BProps, BState, HeaderView,BaseComponent } from "../../index";

export default class MapViewComponent extends BaseComponent<BProps, BState> {
  MapView: any = null;
  constructor(props: BProps) {
    super(props);
    if (!this.MapView) {
      this.MapView = requireNativeComponent("LbsMapManager");
    }
  }

  render() {
    return (
      <View style={{ flex: 1 }}>
        <HeaderView componentId={this.props.componentId} title={this.props.title} />
        <this.MapView style={R.styles.map} />
      </View>
    );
  }
}
